#include "libAcoustX/solver/SolverBase.h"

namespace ax {
namespace solve {

Base::Base()
	: mSource(std::make_shared<ax::core::Source>())
	, mLastErrorMessage("")
{
}

Base::~Base()
{
}

void Base::setSource(const ax::core::Source::sptr& source)
{
	if (source) {
		mSource = source;
	}
}

core::Source::sptr Base::getSource() const
{
	return mSource;
}

void Base::setOceanDataset(const ax::ocean::Dataset::sptr& dataset)
{
	if (dataset) {
		mOceanData = dataset;
	}
}

ax::ocean::Dataset::sptr Base::getOceanDataset() const
{
	return mOceanData;
}

std::string Base::getLastErrorMessage() const
{
	return mLastErrorMessage;
}

} // namespace solve
} // namespace ax